package com.tanker;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
import org.springframework.context.annotation.PropertySource;

/**
 * @author xqxue
 * @time 2018年1月17日 上午10:21:58
 * 启动类
 */
@SpringBootApplication
@PropertySource("classpath:conf/cpic.properties")
public class TankerSpringBootApplication implements EmbeddedServletContainerCustomizer {

	public static void main(String[] args) {
		SpringApplication.run(TankerSpringBootApplication.class, args);
	}

	@Override
	public void customize(ConfigurableEmbeddedServletContainer configurableEmbeddedServletContainer) {  
		configurableEmbeddedServletContainer.setPort(8003);  
	}  
}
